package com.weijin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.weijin.model.entities.Vacation;
import com.weijin.model.enums.UserRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author WeiJin
 * @Version 1.0
 * @Date 2025/3/28 19:38
 */
@Mapper
public interface VacationMapper extends BaseMapper<Vacation> {

    /**
     * 根据角色查询下一级别的为处理的请假信息
     *
     * @param role 角色
     * @return 下一级别的为处理的请假信息
     */
    List<Vacation> selectLowerLevelUntreated(String role);
}
